package com.lgc.demo.scheduletest;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
public class TaskTest {

    @Scheduled(cron = "0/5 * * * * ? ")
    public void test1() {
        System.out.println("定时任务开始啦，哈哈哈");
        System.out.println("<<<---------结束执行HR数据同步任务--------->>>");
    }

    public static void main(String[] args) {
        System.out.println("test开始啦，哈哈哈");
    }
}
